package org.linlinjava.litemall.db.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * litemall订货
 *
 * @author yliyun
 * @date 2022/09/22
 */
@TableName(value = "litemall_order_formula_material",autoResultMap = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
public class LitemallOrderFormulaMaterial {

    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    private Integer orderId;

    private Integer orderGoodsId;

    /**
     * 订单id
     */
    private Integer formulaId;

    private Integer materialId;


    /**
     * 商店id
     */
    private String materialName;
    private String makeUnit;
    /**
     * 商品id
     */
    private Integer materialType;


    /**
     * 商品名称
     */
    private BigDecimal surcharge;

    /**
     * 货物sn
     */
    private Double specificationsDose;

    private Integer quantity;

    private BigDecimal price;

    //private String chargingCondition;

    private String unit;

    private BigDecimal consumeSystem;

    private Boolean isDefault;

    /**
     * 添加时间
     */
    private LocalDateTime addTime;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;

    /**
     * 删除
     */
    private Boolean deleted;

}
